package com.example.szh.splash.timer.thread;

import android.os.Handler;

public class TimerThread extends Thread {
    private Handler handler;
    public TimerThread(Handler handler){
        this.handler=handler;
    }

    @Override
    public void run() {
        super.run();
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        handler.sendEmptyMessage(0);
//        Message message = handler.obtainMessage();
//        handler.sendMessage(message);


    }
}
